import { axios, get, post } from "./http"

export const ajax = {


    getaddress: (params, headers) => get("http://h5project.cn:8105/users/maizuo", params, headers),


    getall: (body, params, headers) => post("http://h5project.cn:8105/users/getdata/", body, params, headers),

    //首页分类
    getfm: (params, headers) => get("http://h5project.cn:8105/kaolaFm/gethome/", params, headers),

    //首页导航
    getnav: (params, headers) => get("http://h5project.cn:8105/kaolaFm/getnav/", params, headers),

    //video推荐
    gettuijian: (params, headers) => get("http://h5project.cn:8105/kaolaFm/gettuijian", params, headers),

    //详情节目单 带id
    getjiemu: (params, headers) => get("http://h5project.cn:8105/kaolaFm/getjiemu", params, headers),

    //详情 详情 带id
    getxiangqing: (params, headers) => get("http://h5project.cn:8105/kaolaFm/getxiangqing", params, headers),
    //获取音频
    getvideo: (params, headers) => get("http://h5project.cn:8105/kaolaFm/getvideo", params, headers),

    //搜索
    getsousuo: (params, headers) => get("http://h5project.cn:8105/kaolaFm/getsousuo", params, headers),

    //热门搜索
    getkey: (params, headers) => get("http://h5project.cn:8105/kaolaFm/getkey", params, headers),



    // 获取用户信息
    getuserinfo: (params) => get("http://h5project.cn:8105/users/getuserinfo", params, ),
    // 通过手机号查找用户名
    getphoneuser: (params) => get("http://h5project.cn:8105/users/getphoneuser", params, ),

    //添加收藏
    Fmshoucang: (params) => get("http://h5project.cn:8105/kaolaFM/Fmshoucang", params, ),

    //添加评论
    FMaddpl: (params) => get("http://h5project.cn:8105/kaolaFM/FMaddpl", params, ),

    //查询歌单是否收藏
    Fmfindone: (params) => get("http://h5project.cn:8105/kaolaFM/Fmfindone", params, ),
    //取消收藏
    Fmdelsc: (params) => get("http://h5project.cn:8105/kaolaFM/Fmdelsc", params, ),

    //查询所有收藏
    Fmfindall: (params) => get("http://h5project.cn:8105/kaolaFM/Fmfindall", params, ),

    //查询歌单所有评论
    FMfindallpl: (params) => get("http://h5project.cn:8105/kaolaFM/FMfindallpl", params, ),

    //查询用户评论
    FMuserpl: (params) => get("http://h5project.cn:8105/kaolaFM/FMuserpl", params, ),

    //删除用户评论
    delpl: (params) => get("http://h5project.cn:8105/kaolaFM/delpl", params, ),

    uploadavatar: (params) => post("http://h5project.cn:8105/users/uploadavatar", params),
}